<template>
  <div class="box1">
    这是一个demo界面
    <div class="box2">
      这是一个demo界面
    </div>
  </div>

</template>

<script>
  import {
    weather,
    demo
  } from "../../api/demo.js"
  export default {
    data() {
      return {}
    },
    mounted() {
      this.getWeather()
    },
    methods: {
      //获取天气信息
     async  getWeather() {
        console.log("555")
        let obj = {
          key: "e71175856a4b484fae3a4b2ad99c074e",
          location: 101010100
        }
       let res = await  weather(obj)
         console.log(res)
      }

    }
  }
</script>

<style lang="scss" scoped>
  @import  "../../assets/css/global.scss";
  .box1{
    color: $color ;
  }
  .box2{
    color: $fontColor ;
  }
</style>
